package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

    }
    public void onClick(View v)
    {
        if(v.getId()==R.id.bt1)
        {Intent intent=new Intent();
        ComponentName cname=new ComponentName(this,UC3.class);
        intent.setComponent(cname);
        startActivity(intent);}
        if(v.getId()==R.id.bt2)
        {Intent intent=new Intent();
            ComponentName cname=new ComponentName(this,UC2.class);
            intent.setComponent(cname);
            startActivity(intent);}
        if(v.getId()==R.id.bt3)
        {Intent intent=new Intent();
            ComponentName cname=new ComponentName(this,UC4.class);
            intent.setComponent(cname);
            startActivity(intent);}
        if(v.getId()==R.id.bt4)
        {Intent intent=new Intent();
            ComponentName cname=new ComponentName(this,UC1.class);
            intent.setComponent(cname);
            startActivity(intent);}
        if(v.getId()==R.id.bt5)
        {Intent intent=new Intent();
            ComponentName cname=new ComponentName(this,UC5.class);
            intent.setComponent(cname);
            startActivity(intent);}

    }
}